const dev = {
  environment: "开发环境",
  apiurl: "api"
};

const pro = {
  environment: "生产环境",
  apiurl: "https://appiwin.anjintech.com"
};

const test = {
  environment: "测试环境",
  apiurl: "http://192.168.1.50:9091"
};

let config;

if (process.env.VUE_APP_MODE === "development") {
  config = dev;
}

if (process.env.VUE_APP_MODE === "production") {
  config = pro;
}

if (process.env.VUE_APP_MODE === "test") {
  config = test;
}

console.log("当前处于：", config.environment);

export default config;
